package com.agileboot.domain.feedback.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author lx
 * @since 2023-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_user_feedback")
@ApiModel(value = "UserFeedback对象", description = "用户反馈")
public class UserFeedback extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 反馈id
     */
    @ApiModelProperty("反馈id")
    @JsonSerialize(using = ToStringSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户标识
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 用户名
     */
    @ApiModelProperty("用户名")
    private String userName;

    /**
     * 反馈内容
     */
    @ApiModelProperty("反馈内容")
    private String content;

    /**
     * 图片地址，','分隔
     */
    @ApiModelProperty("图片地址")
    private String imgUrls;

    /**
     * 0为未回复，1已回复
     */
    @ApiModelProperty("0为未回复，1已回复")
    private Integer status;

    /**
     * 处理时间
     */
    @ApiModelProperty("处理时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime handleTime;

    /**
     * 处理内容
     */
    @ApiModelProperty("处理内容")
    private String handleContent;

    /**
     * 处理结果图片
     */
    @ApiModelProperty("处理结果图片")
    private String handleImg;

}
